package com.zlzxm.shoesmarket.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.zlzxm.shoesmarket.R;
import com.zlzxm.shoesmarket.view.adapter.entity.EntityHomeMenu;

import org.jetbrains.annotations.NotNull;

/**
 * CREATE BY zlzxm ON 4/7/21
 */
public class ADHomeMenu extends BaseQuickAdapter<EntityHomeMenu, BaseViewHolder> {

    public ADHomeMenu() {
        super(R.layout.item_home_menu, EntityHomeMenu.createHomeMenu());
    }



    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, EntityHomeMenu entityHomeMenu) {

        baseViewHolder.setImageResource(R.id.ivIcon, entityHomeMenu.getIcon());
        baseViewHolder.setText(R.id.tvTitle, entityHomeMenu.getTitle());
    }
}
